<!DOCTYPE html>
<!-- saved from url=(0030)http://shop.nubia.com/cart.php -->
<html class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看购物车——努比亚nubia智能手机官网</title>

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta property="wb:webmaster" content="6bdcc5762d77ce58">
<meta property="qc:admins" content="4267477257665211636">
<meta name="baidu-site-verification" content="YjQteHb3gi">
<meta name="charset" content="utf-8">
<meta name="wb:webmaster" content="6bdcc5762d77ce58">
<meta name="keywords" content="智能手机,拍照手机,努比亚手机,nubia Z9 Max,nubia Z9 mini,nubia Z7,nubia Z7 Max,nubia Z7 mini,nubia X6">
<meta name="description" content="作为全球高端智能手机提供商，努比亚官网为您提供nubia Z9 Max,nubia Z9 mini,nubia Z7, nubia Z7 Max, nubia Z7 mini, nubia X6等产品介绍及在线购买。">
<link rel="shortcut icon" href="http://static.nubia.cn/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ asset('/css/style_0506.css') }}">
<link rel="stylesheet" href="{{ asset('/css/base.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb-media.css') }}">
<link rel="stylesheet" href="{{ asset('/css/carts.css') }}" type="text/css">
<link rel="stylesheet" href="{{ asset('/css/partslist.css') }}" type="text/css">

<link type="text/css" rel="stylesheet" href="{{ asset('/css/layer.css') }}" id="skinlayercss"><style type="text/css">.fancybox-margin{margin-right:0px;}</style></head>
<script  src="{{ asset('/adm/plugins/jQuery/jQuery-2.1.4.min.js') }}"></script>
<!-- <script src="{{ asset('/js/jQuery-1.9.1.min.js') }}"></script> -->

<body>
    <div id="nb-h-wrap">
    <style>
        .nb-users-bar.logged:hover .nb-user-menu{display:block;}
    </style>
    <div id="nb-header" class="cl">
        <a class="nubia-logo" href="http://www.nubia.com/" alt="努比亚官网" title="nubia 努比亚"></a>
        <a class="nubia-menu-btn" href="http://shop.nubia.com/cart.php#"></a>
         <ul class="nubia-navigator cl left">
                    <li><a href="{{ asset('/home/shopindex') }}">商城</a></li>
                    <li><a href="http://www.nubia.com/nubiaphone.php">产品</a></li>
                    <li><a href="http://app.nubia.cn/">应用</a></li>
                    <li><a href="http://www.nubia.com/service.php">服务</a>   </li>
                    <li><a href="http://www.nubia.com/store.php">体验店</a></li>
                    <li><a href="http://bbs.nubia.cn/">社区</a></li>
                </ul>
         <ul class="nubia-navigator cl right">
                    <li class="nb-users-bar">
                     @if(session('master'))
                        <b class="user-ico"></b>
                        {{ session('master') -> username }}<a href="{{ url('/home/userinfo') }}">个人中心</a><a href="{{ url('/home/cart/index') }}">购物车</a><a href="{{ url('/home/login/logout') }}">退出</a>

                       <!--  {{ session('master') -> username }}

                        <a href="http://www.nubia.com/cn/#" id="username" style="display:block"></a>
                        <dl id="info" class="nb-user-menu" style="display: block; opacity: 50;">
                        
                            <em></em>
                            <dd><a href="http://www.nubia.com/member.php">个人中心</a></dd>
                            <dd><a href="http://www.nubia.com/memberorder.php?a=orderList">我的订单</a></dd>
                            <dd><a href="http://www.nubia.com/memberbonus.php">我的优惠券</a></dd>
                            <dd><a href="http://www.nubia.com/memberfavorite.php">我的收藏</a></dd>
                            <dd><a href="http://www.nubia.com/memberbook.php">我的预约</a></dd>
                            <dd><a href="http://www.nubia.com/memberaddress.php">收货地址</a></dd>
                            <dd><a href="http://www.nubia.com/profile.php?a=logout&amp;url=%2Findex.html">退出</a></dd>
                        </dl> -->
                    @elseif(!session('master'))
                        <a href="{{ url('/home/register') }}" class="register">注册</a>
                        <a href="{{ url('/home/login') }}" class="login">登录</a>
                    @endif
                    </li>
                </ul>
    </div>
</div>
<div id="tempdom" style="height:60px;width:100%"></div>

    <div class="container" id="cart-con-loc">
        <div class="cart-con">
            <div class="cart-h1">共&nbsp;<span style="color:red">1</span>&nbsp;件商品</div>
                <table class="cart-thead table table-hover table-bordered" cellspacing="0" cellpadding="0" border="0">
                    <thead>
                        <tr>
                            <th width="15%">商品</th>
                            <th width="38%"></th>
                            <th width="11%">单价</th>
                            <th width="16%">数量</th>
                            <th width="12%">小计</th>
                            <th width="6%">操作</th>
                        </tr>
                    </thead>
                    <tbody>
        @if(session('master'))
      
        @foreach($data as $row)  
        <!-- dd($data)         -->
                    <tr>
                        <td>
                 <img src="{{asset($row['goodspic'])}}" style="width:60px;">
                </td>
           <td class="productname">{{$row['goodsname']}}</td>                                                      
            <td>
                   {{$row['price']}}                                        
            </td>
            <td>
          <div class="btn-cnts">
            
            <a href="javascript:void(0);" value="{{$row['id']}}" id="cuts" style="padding:6px" class="table-cut">-</a>
            <input type="text" id="{{$row['id']}}" class="num cart-cnt" maxlength="2" readonly="true" name="scnt" value="{{$row['scnt']}}" title="请输入购买量">
            <a href="javascript:void(0);" value="{{$row['id']}}" id="add" class="table-add" onclick="updateNumber(7408024, true)">+</a>
           </div>
          </td>
           <td class="sum" style="line-height:1.8">￥{{$row['price'] * $row['scnt'] }}.00     </td> 
          <td><a class="cart-close close" href="{{ url('/home/cart/delete') }}/{{$row['id']}}" title="删除">×</a></td>
            </tr>
        @endforeach
        @else
            <!-- {{ $sum = 0 }} -->
        @foreach($data as $row)  
        <!-- dd($data)         -->
                    <tr>
                        <td>
                 <img src="{{asset($row['goodspic'])}}" style="width:60px;">
                </td>
           <td class="productname">{{$row['goodsname']}}</td>                                                      
            <td class="price">
                   {{$row['price']}}                                        
            </td>
            <td>
          <div class="btn-cnts">
            
            <a href="javascript:void(0);" id="cuts" style="padding:6px" class="table-cut">-</a>
            <input type="text"  class="num cart-cnt" maxlength="3" readonly="true" name="scnt" value="{{$row['scnt']}}" title="请输入购买量">
            <a href="javascript:void(0);"  id="add" class="table-add" >+</a>
           </div>
          </td >
           <td class="sum" style="line-height:1.8">￥{{$row['price'] * $row['scnt'] }}.00     </td> 
          <td><a class="cart-close close" href="{{ url('/home/cart') }}" title="删除">×</a></td>
            </tr>
        @endforeach
        @endif
         </tbody>
              <tfoot>
             <tr>
             <td colspan="2" style="height:90px;text-align:left;">
                   </td>
               <td colspan="2" style="text-align:right;line-height:1.8">
                   <p>商品总计:</p>
                    <p>合计(不含运费):</p>
                   </td>
                <td colspan="2" class="sum" style="line-height:1.8">
               <p id="heji01" style="color:#666">￥{{session('sum')}}.00</p>
                 <p id="heji02" style="color:red">￥{{session('sum')}}.00</p>
                            
                        </td>
                    </tr>
                  </tfoot>
                  </table>
<script type="text/javascript">
        window.onload = function()
        {   
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
            
            $(".table-cut").on('click',function(){
                
                var cut = $(this);
                //获取ID
                var inp = $(this).next('input');
                var scnt = $(this).next('input').val();
                var id = $(this).next('input').attr('id');
                var sum = $(this).parent(".btn-cnts").parent().next('td');
                // var sum = $('.sum');
                var price = $(this).parent(".btn-cnts").parent().prev('td').html();
                var sum_old = scnt * price;
                var sum_new = (scnt - 1) * price;
                var heji01 = $('#heji01');
                var heji02 = $('#heji02');
                var heji_old = $('#heji01').html();
               

                // $('.num cart-cnt').each(function(){
                //     heji_new =heji_new + $this.val() * $(this).parent(".btn-cnts").parent().prev('td').html();
                //   });
                
                // var heji_new = $.session.get("sum");
                
                    $.ajax({
                        url: "{{ url('/home/cart/cut') }}",
                        type: 'GET',
                        async : true,
                        data:{"id":id,scnt:scnt},
                        success:function(data)
                        {
                            if(data)
                            {
                                inp.val(scnt - 1);
                                sum.html("￥"+sum_new+".00");
                                heji01.html("￥"+data+".00");
                                heji02.html("￥"+data+".00");
                            }else
                            {
                                inp.val(scnt);
                                sum.html("￥"+sum_old+".00");
                                heji01.html("￥"+sum_old+".00");
                                heji02.html("￥"+sum_old+".00");
                            }
                        },
                        error:function(){
                             console.log('00123123');
                        },
                        dataType:'text'
                    });
                    // isclick = true;
                
            });

$(".table-add").on('click',function(){
                
                var add = $(this);
                //获取ID
                var inp = $(this).prev('input');
                var scnt = $(this).prev('input').val();
                var id = $(this).prev('input').attr('id');
                var scnt_new = Number(scnt) + 1; 
                var sum = $(this).parent(".btn-cnts").parent().next('td');
                var price = $(this).parent(".btn-cnts").parent().prev('td').html();
                var sum_old = Number(scnt) * price;
                var sum_new = (Number(scnt) + 1) * price;
                var heji01 = $('#heji01');
                var heji02 = $('#heji02');
                var heji_old = $('#heji01').html();
                
                    $.ajax({
                        url: "{{ url('/home/cart/add') }}",
                        type: 'GET',
                        async : true,
                        data:{"id":id,scnt:scnt},
                        success:function(data)
                        {
                            if(data)
                            {
                                inp.val(scnt_new);
                                sum.html("￥"+sum_new+".00");
                                heji01.html("￥"+data+".00");
                                heji02.html("￥"+data+".00");
                            }else
                            {
                                 inp.val(scnt);
                                sum.html("￥"+sum_old+".00");
                                heji01.html("￥"+sum_old+".00");
                                heji02.html("￥"+sum_old+".00");

                            }
                        },
                        error:function(){
                             console.log('00123123');
                        },
                        dataType:'text'
                    });
                    // isclick = true;
                
            });
            $('#info').fadeOut(1000);
        }

    </script>
<div id="addip_zz"></div> 


            <div class="btn-cart-groups">
                <div class="btn-cart-groups-inner">
                    <a href="{{ url('/home/list') }}" target="_blank" class="pay-continue">继续购物</a>
                @if(session('master'))
                    <a href="{{ url('/home/order/index') }}" class="go-pay">立即结算</a>
                @else
                {{Session::put('cart_flag',true) }}
                    <a href="{{ url('/home/login') }}/{{session('cart_flag')}}" class="go-pay">立即结算</a>
                @endif
                </div>
            </div>
        </div>

    </div>
    <div id="nb-footer">
    <div class="nubia-copyright">
       
<noscript id="getsomeinfo" controller="cart" sku="" nid="" action="" style="width:100%;height:0px;"></noscript>
<div class="nubia-foot-nav">
    <a target="_blank" href="http://www.nubia.com/service.php?sid=6">关于我们</a>|
    <a target="_blank" href="http://www.nubia.com/service.php?sid=7">联系我们</a>|
    <a target="_blank" href="http://www.nubia.com/news.php">新闻中心</a>|
    <a target="_blank" href="http://hr.nubia.com/">加入我们</a>|
    <a target="_blank" href="http://www.nubia.com/edzp8b78c9614.html">合作注册</a>|
    <a target="_blank" href="http://www.nubia.com/gongyi.php">公益</a>|
    <a target="_blank" href="http://www.nubia.com/recycle.php">以旧换新</a>|
    <a href="javascript:void(0);" onclick="showFeedBack();">问题反馈</a>|
    <div class="mz_footer-language">
      <a href="http://www.nubia.com/actitem/5881a96fb8f7622.html" title="简体中文" class="language-link">简体中文</a>
      
    </div>
</div>

<style type="text/css">
.feedback-main {
    height: 620px;
    padding: 0 48px 48px;
    background-color: #fff
}
.feedback-nav {
    height: 18px;
    padding-top: 30px;
    padding-bottom: 15px;
    width:95%;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0
}
.feedback-nav li {
    float: left;
    list-style: none;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: #424242;
    margin-left: 10px;
}
.feedback-nav .tab-active {
    color: #ff6700
}
.form-box {
    float: left
}
.form-box .title {
    height: 60px;
    margin: 0;
    line-height: 60px;
    font-weight: normal;
    color: #424242;
    font-size: 16px;
    margin-left: 26px;
}
.form-box .form-section {
    margin-bottom: 12px
}
.form-box .input-textarea {
    width: 600px;
    height: 85px;
    margin-left: 26px;
    margin-top: 15px;
    border-radius: 3px;
    padding: 10px;
    border: 1px solid #9C9C9C;
}
.form-box .input-url {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.form-box .input-text {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box {
    margin-bottom: 20px
}
.captcha-box .form-section {
    float: left
}
.captcha-box .form-section .input-text {
    width: 120px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box .captcha-img {
    float: left
}
.captcha-box .captcha-img img {
    float: left;
    height: 40px;
    margin-right: 10px
}
.captcha-box .captcha-img a {
    float: left;
    height: 40px;
    line-height: 40px
}
.iconfont,.input-label{
    margin-left: 26px;
}
#feedbackType{
    width: 200px;
    padding:10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
#submitQuestion{
    border: 1px solid #ee4a17;
    display: block;
    margin-left: 26px;
    width: 140px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #ee4a17;
    border-radius: 3px;
}
/*遮罩样式开始*/
#feedback_addip_zz { 
    background-color:#000; 
    left:0;
    opacity:0.5;
    position:fixed;
    top:0;
    z-index:10500;
    filter:alpha(opacity=50);
    -moz-opacity:0.5; 
    -khtml-opacity:0.5; 
} 
#feedback-dialog {
    left:50%; 
    margin: -260px 0 0 -350px;
    padding: 1px;
    position: fixed !important;
    top: 50%;
    width: 700px;
    height: 535px;
    z-index: 10501;
    border-radius:10px; 
    display:none; 
    color: #716e5f;
    background-color:#fff;
}

.feedback_dialog_close{
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
    font-size: 30px;
    text-align: center;
    line-height: 30px;
}
/*遮罩样式结束*/
.feedback{
    border-bottom:1px solid #d5d5d5;
    width: 95%;
    margin: 0 auto;
    font-size:20px;
    color: #000;
    padding-bottom: 15px;
}
#errorTip {
    color: red;
    line-height: 41px;
    margin-left: 26px;
    text-indent: 30px;
    margin-bottom:0px;
}
#wordTip {
    margin-left:30px;
}
</style>

<div class="feedback-main" id="feedback-dialog">
    <span class="feedback_dialog_close">×</span>
    <ul class="feedback-nav  clearfix">
        <li>问题反馈</li>
    </ul>
    <div class="tab-container">
        <div class="tab-content clearfix">
            <div class="form-box">
                <h2 class="title">对您给予的帮助和支持，深表感谢！</h2>
                <div class="form-section">
                    <div class="xm-select">
                      <div class="feedbackdropdown">
                          <label for="feedbackType" class="iconfont"></label>
                            <select name="feedbackType" id="feedbackType">
                                
                            </select>
                        </div>
                    </div>
                </div>

                <div class="form-section">
                    <label for="feedbackQuestion" class="input-label">在这里描述您遇到的问题</label>
                    <span id="wordTip">还可以输入<span id="wordLeft">200</span>个字</span>
                    <textarea placeholder="问题描述须大于10小于200个字" name="feedbackQuestion" id="feedbackQuestion" onblur="countWord();" onkeyup="countWord();" class="input-text input-textarea"></textarea>
                </div>
                <div class="form-section">
                    <input placeholder="联系方式：手机、邮箱（选填）" type="text" name="feedbackContact" id="feedbackContact" class="input-text">
                </div>
                <div class="form-section">
                    <input placeholder="页面链接（选填）" type="text" name="feedbackQuestionUrl" id="feedbackQuestionUrl" class="input-text input-url">
                </div>
                <div id="captchaBox" class="form-section captcha-box">
                    <div class="form-section">
                        <input placeholder="验证码" type="text" autocomplete="off" data-authurl="" name="captcha_code" id="captcha_code" class="input-text">
                    </div>
                    <div class="captcha-img">
                        <img id="feedbackCaptchaImg" alt="" src="http://shop.nubia.com/cart.php">
                        <a id="captchaChange" href="javascript:void(0);" onclick="changeCaptcha();">看不清，换一个</a>
                    </div>
                </div>
                <div class="form-section" id="errorTip">

                </div>
                <div style="clear:both"></div>
                <a id="submitQuestion" class="" href="javascript:void(0);">提交问题</a>
                <div style="height:30px"></div>
            </div>
        </div>
    </div>
</div>

<div id="feedback_addip_zz"></div> 

        
        <span class="nb-footer-func">
            <a class="nb-apk-ico" target="_blank" href="http://ui.nubia.cn/app/app/33"></a>
            <a class="nb-cloud-ico" target="_blank" href="http://yun.baidu.com/xcloud/nubia/pan"></a>
            <a class="nb-weibo-ico" target="_blank" href="http://www.weibo.com/p/1006062156294570"></a>
            <a class="nb-weixin-ico" style="display:none" href="http://shop.nubia.com/cart.php#"></a>
            <a class="nb-service-ico" href="javascript:;" onclick="window.open(&#39;http://livechat1.zte.com.cn/looyu/chat/p.do?c=1&amp;f=60&#39;, &#39;chat&#39;, &#39;height=460,width=690,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200&#39;)" title="在线客服"></a>
            <strong class="nb-tel-ico">服务热线：400-700-6600</strong>
            
            <div class="nb-footer-wx-layer">
                <img src="{{asset('/img/nb-weixin-code-figure.jpg')}}">
            </div>
        </span>
        <p class="nb-footer-info"> 2012-2017 努比亚技术有限公司 版权所有 <a href="http://www.miibeian.gov.cn/" style="margin-right: 10px;">粤ICP备10006213号-2</a><a href="http://szcert.ebs.org.cn/D52B1891-CB9A-4FD0-8BC6-1D5650B567CE" target="_blank" style="margin-right: 5px;margin-left: 3px;"><img src="{{asset('/img/57fc5f6def76275.jpg')}}" title="深圳市市场监督管理局企业主体身份公示" alt="深圳市市场监督管理局企业主体身份公示" border="0" style="border-width:0px;border:hidden; border:none;vertical-align: middle;height: 18px;"></a> ICP经营许可证编号：粤B2-20120688<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502000309"><img src="{{asset('/img/57c5599015f1558.png')}}" style="vertical-align: middle;height: 18px;margin-right: 5px;margin-left: 3px;"><span style="line-height: 18px;color:#939393;">粤公网安备 44030502000309号</span></a></p>
    </div>
</div>
<style>
.addIp:hover{color:#ff3309; }
#btnplay-zz { 
    height:1300px !important;
    width: 100%;
    background-color:#000; 
    left:0;
    opacity:0.6;
    position:absolute;
    top:0;
    z-index:300;
    filter:alpha(opacity=60);
    -moz-opacity:0.6; 
    -khtml-opacity:0.6; 
} 
#dialog {
    left:50%; 
    margin:-200px 0 0 -300px; 
    padding:1px; 
    position:fixed !important; /* 浮动对话框 */ 
    position:absolute; 
    top:50%; 
    width:600px; 
    height:400px;
    z-index:999; 
    border-radius:5px; 
    display:none; 
} 
#dialog .closed{
    position:absolute;
    top: -8px;
    right: -60px;
    color: #fff;
    text-decoration:none; 
    font-size:25px;
}
</style>
    <div id="btnplay-zz" style="height: 420px; width: 1417px; display: none;"></div>
    <div id="dialog" style="display: none;">
        <a href="javascript:void(0);" class="closed">×</a>
        <div id="CuPlayer" style="width:300px; margin:0px;"></div>
    </div>
</body><style type="text/css" id="72115225"></style></html>